<!DOCTYPE HTML>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="pages/taglib.jsp" %>
<html>
  <head>
    <base href="<%=basePath%>">
    <title>addDevelopment</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<%@ include file="pages/link-script.jsp" %>
  </head>
  <body>
            
   <%@include file="pages/header.jsp" %>
  	<h3>添加开发信息</h3>
  	<form role="form" action="addDevelopment" method="post" >
  		<div class="row">
  		<s:iterator value="#session.deBean"  status="status" >
		  <div class="form-group col-xs-7">
		    <label for="requirementId">需求编号</label>
		    <s:textfield  class="form-control" name="requirementId"  readonly="true"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="requirementType">需求类型</label>
		    <s:textfield  class="form-control" name="requirementType"  readonly="true"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="requirementName">需求名称</label>
		    <s:textfield  class="form-control" name="requirementName"  readonly="true"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="dealResult">需求审批结果</label>
		    <s:textfield  class="form-control" name="dealResult"  readonly="true"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="dealTeam">受理团队</label>
		    <s:textfield  class="form-control" name="dealTeam"  readonly="true"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="developWordload">工作开发量(人/天)</label>
		    <s:textfield  class="form-control" name="developWordload" placeholder="how long does the project will spend?"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="planStartTime">预计开发开始时间</label>
		    <s:textfield  class="form-control" id="planStartTime" name="planStartTime" placeholder="when do you plan to start to develop?"/>
		    <script>
		    	$('#planStartTime').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="planEndTime">预计开发结束时间</label>
		    <s:textfield  class="form-control" id="planEndTime" name="planEndTime" placeholder="when do you plan to end the development?"/>
		    <script>
		    	$('#planEndTime').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="realStartTime">实际开发开始时间</label>
		    <s:textfield  class="form-control" id="realStartTime" name="realStartTime" placeholder="when do you start to develop actually"/>
		    <script>
		    	$('#realStartTime').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="realEndTime">实际开发结束时间</label>
		    <s:textfield  class="form-control" id="realEndTime" name="realEndTime" placeholder="when do you end the development actually"/>
		    <script>
		    	$('#realEndTime').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="developOwner">开发负责人</label>
		    <s:textfield  class="form-control" name="developOwner" placeholder="the owner of the project's development"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="planTouchanDate">计划投产日期</label>
		    <s:textfield class="form-control" id="planTouchanDate"  name="planTouchanDate"  placeholder="when do you plan to put the project into production?"/>
		    <script>
		    	$('#planTouchanDate').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="realTouchanDate">实际投产日期</label>
		    <s:textfield  id="realTouchanDate" class="form-control" name="realTouchanDate" placeholder="the real time of putting the project into production"/>
		    <script>
		    	$('#realTouchanDate').datetimepicker({
			    	format: 'yyyy/mm/dd',
			    	startDate: '2016/01/01',
			    	autoclose: 'true',
			    	minView: 'month',
			    	todayBtn: 'linked',
			    	todayHighlight: 'ture',
			    	language: 'zh-CN'
			    });
		    </script>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="projectStatus">项目状态</label>
		    <select name="projectStatus" class="form-control">
	     		<option>等待排期</option>
	     		<option>开发--需求分析</option>
	     		<option>开发--技术方案</option>
	     		<option>开发--编码</option>
	     		<option>测试--SIT</option>
	     		<option>测试--UAT</option>
	     		<option>待投产</option>
	     		<option>已投产</option>
	     		<option>停滞</option>
	     		<option>撤销</option>
	     	</select>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="touchanOwner">投产负责人</label>
		    <s:textfield  class="form-control" name="touchanOwner" placeholder="the owner of putting the project into production"/>
		  </div>
		  <div class="form-group col-xs-7">
		    <label for="remark">备注</label>
		    <s:textfield  class="form-control" name="remark" placeholder="something else..."/>
		  </div>
		  </s:iterator>
	  </div>
	  <button type="submit" class="btn btn-primary">Submit</button>
	</form>
  </body>
</html>